/*
 * Created on 2005-3-30
 *
 */
package com.hd123.rumba.impex;

import java.util.Date;

import com.hd123.rumba.cartridge.FVRumbaSystem;
import com.hd123.rumba.domain.IDomain;
import com.hd123.rumba.runtime.VersionedPersistent;

/**
 * @author caili
 */
public class Indicator extends VersionedPersistent {

  /** 构件包前缀 */
  public static final String FUNCV_PREFIX = FVRumbaSystem.FUNCV_PREFIX;
  
  public static final String EXPORT = "export";
  public static final String IMPORT = "import";

  private IDomain domain;
  private String object; // 对象
  private String action; // 动作, SEND or RECEIVE
  private IDomain counterPart; // 对方
  private Date lastActionTime; // 上次收发成功的时间
  private ExportCondition exportCondition;

  public static final String CAPTION_DOMAIN = "域";
  public static final String CAPTION_OBJECT = "对象";
  public static final String CAPTION_ACTION = "动作";
  public static final String CAPTION_COUNTERPART = "对方";
  public static final String CAPTION_LASTACTIONTIME = "上次成功时间";
  public static final String CAPTION_COND_TIME = "时间条件";
  public static final String CAPTION_COND_ID = "ID条件";

  public static final String PERMISSION_RESET="导入导出日志.重置条件权";/*"导入导出日志.重置条件";*/
  
  public ExportCondition getExportCondition() {
    return exportCondition;
  }

  public void setExportCondition(ExportCondition exportCondition) {
    this.exportCondition = exportCondition;
  }

  public Date getLastActionTime() {
    return lastActionTime;
  }

  public void setLastActionTime(Date lastActionTime) {
    this.lastActionTime = lastActionTime;
  }

  public IDomain getDomain() {
    return domain;
  }

  public void setDomain(IDomain domain) {
    this.domain = domain;
  }

  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public IDomain getCounterPart() {
    return counterPart;
  }

  public void setCounterPart(IDomain counterPart) {
    this.counterPart = counterPart;
  }

  public String getObject() {
    return object;
  }

  public void setObject(String object) {
    this.object = object;
  }
}
